<?php

namespace App\Http\Controllers\DesignPattern\Creational\Behavioral;

use App\Model\DesignPattern\Creational\Behavioral\State\DefaultText;
use App\Model\DesignPattern\Creational\Behavioral\State\TextEditor;
use App\Http\Controllers\Controller;
use App\Model\DesignPattern\Creational\Behavioral\State\UpperCase;

class StateController extends Controller
{
    public function index()
    {
        $editor = new TextEditor(new UpperCase());
        return $editor->type('Second Line');
    }
}
